//  测试环境
// const requestHost = 'https://cake.maidongxi.shop/';

//  正式环境
const requestHost = 'https://caker.maidongxi.shop/';

//  云开发环境变量 
export const cloud_evn = "cake-developer-oqn76";

const requestApi = requestHost + "front";
export const configLink = {
  //  获取openId
  getOpenId: requestApi + "/uploadCode",
  //  上传用户昵称和头像
  uploadUserInfo: requestApi + "/uploadUserInfo",
  //  获取品类列表
  getKind: requestApi + "/goods/getKind",
  //  获取某个品类下的全部数据
  //  1.0.3版本之后使用分页读取数据  /goods/getGoodByKindEx
  //  1.0.2版本之前使用无分页读取数据 /goods/getGoodByKind
  getGoodsByKind: requestApi + "/goods/getGoodByKindEx",
  //  获取某个产品的详细信息
  getGoodsDetail: requestApi + "/goods/getGoodById",
  //  添加地址
  addAddress: requestApi + "/address/addAddress",
  //  删除地址
  delAddress: requestApi + "/address/delAddress",
  //  获取所有地址
  getAllAddressList: requestApi + "/address/allAddress",
  //  添加购物车
  addCart: requestApi + "/order/addCart",
  //  更新购物车
  updateCart: requestApi + "/order/updateCart",
  //  删除购物车
  delCart: requestApi + "/order/delCart",
  //  获取购物车列表
  getAllCart: requestApi + "/order/allCart",
  //  提交订单
  commitOrder: requestApi + "/pay/commitorder",
  //  绑定用户优惠券
  bindCoupon: requestApi + "/coupon/bindCoupon",
  //  用户优惠券列表
  myCoupon: requestApi + "/coupon/myCoupon",
  //  全部订单
  myOrder: requestApi + "/pay/myorder",
  //  取消订单
  cancelOrder: requestApi + "/pay/cancelorder",
  //  支付订单
  payOrder: requestApi+"/pay/gotopay",
  //  协议
  agreement: requestHost +"/upload/protocol.pdf",
  //  绑定分销者openid
  bindOpenid: requestApi +"/bindopenid"
  }


// http://cake.maidongxi.loc/front/bindopenid?openid=o1CGg4rojz4O56rSou_qyw2FTouM&parent_openid=o1CGg4nikpL7thWKqtUuF6id3OGc